/*
 * OclPackagedConstraintList.java
 *
 * Created on 12. August 2004, 15:32
 *
 * Copyright (c) 2004, 2005 Ansgar Konermann
 * Contact: <konermann@itikko.net>
 *
 * This file is part of the OCL2.0 parser and compiler libraries
 * created at Technische Universitaet Dresden (TUD), Germany.
 * Visit http://dresden-ocl.sourceforge.net/ for details.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 * MA  02111-1307  USA
 *
 */

package parser.astlib;

import java.util.*;

/**
 *
 * AST node for a list of context declarations within a package/endpackage
 * brace in an OCL file.
 *
 * @author Ansgar Konermann
 * @version
 */
public class OclPackagedConstraintList extends Object {
    
    private List contextDeclarations;    
    private List packageName;
    
    /** 
     * Creates new OclPackagedConstraintList
     * @param List of Strings comprising the package name.
     */
    public OclPackagedConstraintList(List packageName) {
        this.packageName = packageName;
        this.contextDeclarations = new LinkedList();
    }
    
    /** 
     * Creates new OclPackagedConstraintList
     */
    public OclPackagedConstraintList() {
        this.packageName = packageName;
        this.contextDeclarations = new LinkedList();
    }
    
    
    public List getPackageName() {
        return this.packageName;
    }
    public void setPackageName(List packageName) {
        this.packageName = packageName;
    }
    
    public List getContextDeclarations() {
        return contextDeclarations;
    }
    public void addContextDeclaration(OclContextDeclaration contextDeclaration) {
        this.contextDeclarations.add(contextDeclaration);
    }
    public void setContextDeclarationList(List contextDeclarations) {
        this.contextDeclarations = contextDeclarations;

    }

    
}
